﻿using System.Data;
using System.Data.SqlClient;

namespace MyBasicLib.Data.SqlClient
{
    public class Database : Data.Database
    {
        public Database()
            : base(SqlClientFactory.Instance, null)
        {
        }
        public Database(string connectionString)
            : base(SqlClientFactory.Instance, connectionString)
        {
        }
        protected override int UserParametersStartIndex
        {
            get { return 1; }
        }
        public override string ParameterToken
        {
            get { return "@"; }
        }
        //protected override IDataParameterCollection DeriveParameters(IDbCommand discoveryCommand)
        //{
        //    SqlCommandBuilder.DeriveParameters((SqlCommand) discoveryCommand);
        //    return discoveryCommand.Parameters;
        //}
    }
}